package com.ycfmedical.bed;

/**
 * 床体控制常量类 Created by Administrator on 2017/2/14 0014.
 */

public class ControlBedConstants {


    // ============== 请求（固定）指令的TAG类型 ============//
    // 开机发送单片机硬件地址请求指令
    public static final int REQUEST_ZGB_MACADDRESS = 0;
    // 收到单片机硬件地址指令
    public static final int RECEIVE_ZGB_MACADDRESS = REQUEST_ZGB_MACADDRESS + 1;
    // 请求床体参数状态（保存体位）
    public static final int REQUEST_BED_ANGLE = RECEIVE_ZGB_MACADDRESS + 1;
    // 当前接收参数出错
    public static final int RECEIVE_BED_ANGLE = REQUEST_BED_ANGLE + 1;


    // =============自由调整TAG类型============//

    //头板升降
    public static final int CONTROL_POST_HEAD_UP = 100;
    public static final int RETURN_POST_HEAD_UP = CONTROL_POST_HEAD_UP+1;

    public static final int CONTROL_POST_HEAD_DOWN = RETURN_POST_HEAD_UP+1;
    public static final int RETURN_POST_HEAD_DOWN = CONTROL_POST_HEAD_DOWN+1;

    //腿板升降
    public static final int CONTROL_POST_LEG_UP = RETURN_POST_HEAD_DOWN+1;
    public static final int RETURN_POST_LEG_UP = CONTROL_POST_LEG_UP+1;

    public static final int CONTROL_POST_LEG_DOWN = RETURN_POST_LEG_UP+1;
    public static final int RETURN_POST_LEG_DOWN = CONTROL_POST_LEG_DOWN+1;

    //头腿板整体升降
    public static final int CONTROL_POST_BODY_UP = RETURN_POST_LEG_DOWN+1;
    public static final int RETURN_POST_BODY_UP = CONTROL_POST_BODY_UP+1;

    public static final int CONTROL_POST_BODY_DOWN = RETURN_POST_BODY_UP+1;
    public static final int RETURN_POST_BODY_DOWN = CONTROL_POST_BODY_DOWN+1;

    //发送自由调整结束指令
    public static final int CONTROL_POST_FINISH = RETURN_POST_BODY_DOWN+1;
    public static final int RETURN_POST_FINISH = CONTROL_POST_FINISH+1;


    // ==============一键体位参数指令的TAG类型============//
    //睡眠体位
    public static  final int CONTROL_POST_SLEEP = 200;
    public static  final int RETURN_POST_SLEEP = CONTROL_POST_SLEEP+1;
    //休闲体位
    public static final int CONTROL_POST_RELAXATION = RETURN_POST_SLEEP+1;
    public static final int RETURN_POST_RELAXATION = CONTROL_POST_RELAXATION+1;
    //就餐体位
    public static final int CONTROL_POST_REPAST = RETURN_POST_RELAXATION+1;
    public static final int RETURN_POST_REPAST = CONTROL_POST_REPAST+1;
    //工作体位
    public static final int CONTROL_POST_WORK = RETURN_POST_REPAST+1;
    public static final int RETURN_POST_WORK = CONTROL_POST_WORK+1;
    //CPR急救体位
    public static final int RETURN_POST_CRP = RETURN_POST_WORK+1;
    public static final int CONTROL_POST_CRP = RETURN_POST_CRP+1;

    // =============与护士站交互TAG类型==========//
    public static final int RETURN_NURSE_LOGIN_USER = 300;

    public static final int CONTROL_NURSE_MEDICINE = RETURN_NURSE_LOGIN_USER +1;//换药指令
    public static final int CONTROL_NURSE_INJECT = CONTROL_NURSE_MEDICINE+1;//注射指令
    public static final int CONTROL_NURSE_WC = CONTROL_NURSE_INJECT+1;//注射指令
    public static final int CONTROL_NURSE_OTHER = CONTROL_NURSE_WC+1;//其它指令
    public static final int CONTROL_NURSE_LOCK = CONTROL_NURSE_OTHER+1;//护士站加锁床
    public static final int CONTROL_NURSE_UNLOCK = CONTROL_NURSE_LOCK+1;//护士站解锁床




    //=============护理体位(护士调节TAG类型)===========//
    //整床倾斜角度
    public static final int CONTROL_SLANT_ANGLE = 400;
    public static final int RETURN_SLANT_ANGLE = CONTROL_SLANT_ANGLE+1;
    //整床升降(床体高度)
    public static final int CONTROL_NURSE_STATURE_UP = RETURN_SLANT_ANGLE+1;
    public static final int RETURN_NURSE_STATURE_UP = CONTROL_NURSE_STATURE_UP+1;
    public static final int CONTROL_NURSE_STATURE_CHANGE = RETURN_NURSE_STATURE_UP+1;
    public static final int RETURN_NURSE_STATURE_CHANGE = CONTROL_NURSE_STATURE_CHANGE+1;
    public static final int CONTROL_NURSE_STATURE_DOWN = RETURN_NURSE_STATURE_CHANGE+1;
    public static final int RETURN_NURSE_STATURE_DOWN = CONTROL_NURSE_STATURE_DOWN+1;



    //==============底层请求指令=================//
    //接收生命体征数据
    public static final int RECEIVE_ZGB_BODYSIGN = 500;
    //返回生命体征数据
    public static final int RETURN_ZGB_BODYSIGN = RECEIVE_ZGB_BODYSIGN+1;

    // 床体运行到位后接收到ZGB指令
    public static final int RECEIVE_ZGB_BEDCOMPLETE = RETURN_ZGB_BODYSIGN+1;
    public static final int RETURN_ZGB_BEDCOMPLETE = RECEIVE_ZGB_BEDCOMPLETE+1;



    //=============用户登录登出控制===========//

    public static final int CONTROL_USER_NONE = 1000;
    public static final int RECEIVE_REGISTER_USER_ONE = CONTROL_USER_NONE+1;
    public static final int RETURN_REGISTER_USER_ONE = RECEIVE_REGISTER_USER_ONE+1;
    public static final int RECEIVE_REGISTER_USER_TWO =  RETURN_REGISTER_USER_ONE+1;
    public static final int RETURN_REGISTER_USER_TWO =  RECEIVE_REGISTER_USER_TWO+1;
    public static final int RECEIVE_REGISTER_USER_THREE =  RETURN_REGISTER_USER_TWO+1;
    public static final int RETURN_REGISTER_USER_THREE =  RECEIVE_REGISTER_USER_THREE+1;
    public static final int RECEIVE_REGISTER_USER_FOUR =  RETURN_REGISTER_USER_THREE+1;
    public static final int RETURN_REGISTER_USER_FOUR =  RECEIVE_REGISTER_USER_FOUR+1;
    public static final int RECEIVE_REGISTER_USER_FIVE =  RETURN_REGISTER_USER_FOUR+1;
    public static final int RETURN_REGISTER_USER_FIVE =  RECEIVE_REGISTER_USER_FIVE+1;
    public static final int RECEIVE_REGISTER_USER_SIX =  RETURN_REGISTER_USER_FIVE+1;
    public static final int RETURN_REGISTER_USER_SIX =  RECEIVE_REGISTER_USER_SIX+1;
}
